<template>
  <div>
    <component
      :is="(selectNode.type || '').toLowerCase()"
      :config="selectNode.props"
      @cancel="$emit('cancel')"
    />
  </div>
</template>

<script>
import Approval from "./ApprovalNodeConfig.vue";
import Root from "./RootNodeConfig.vue";
export default {
  name: "NodeConfig",
  components: {
    Approval,
    Root,
  },
  data() {
    return {
      active: "properties",
    };
  },
  computed: {
    selectNode() {
      return this.$store.state.selectedNode;
    }
  },
  methods: {},
};
</script>
